/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pa165.languageschoolservice.DTO;

import com.pa165.languageschoolpersistence.entities.LanguageLevel;
import com.pa165.languageschoolpersistence.entities.LanguageSpoken;
import java.io.Serializable;


/**
 *
 * @author Elena Medvedeva
 */
public class LevelofLanguageDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;

    LanguageSpoken languageSpoken;

    public LectorDTO getLector() {
        return lector;
    }

    public void setLector(LectorDTO lector) {
        this.lector = lector;
    }
    
    LanguageLevel level;
   
    LectorDTO lector;

    public Long getId() {
        return id;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 67 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof LevelofLanguageDTO)) {
            return false;
        }
        LevelofLanguageDTO other = (LevelofLanguageDTO) obj;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LanguageSpoken getLanguageSpoken() {
        return languageSpoken;
    }

    public void setLanguageSpoken(LanguageSpoken languageSpoken) {
        this.languageSpoken = languageSpoken;
    }

    public LanguageLevel getLevel() {
        return level;
    }

    public void setLevel(LanguageLevel level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return " LevelofLanguageDTO [id=" + id + ", level=" + level + ", language=" + languageSpoken + ", lector=" + this.lector + " ]";
    }
}
